﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DFGK_WMS.Context.Migrations
{
    public partial class 投料单和报废补料单 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "ProductCode",
                table: "T_ShippingOrderDetail",
                type: "nvarchar(30)",
                maxLength: 30,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ProductModelSpec",
                table: "T_ShippingOrderDetail",
                type: "nvarchar(50)",
                maxLength: 50,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ProductName",
                table: "T_ShippingOrderDetail",
                type: "nvarchar(30)",
                maxLength: 30,
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "ProductQty",
                table: "T_ShippingOrderDetail",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "ProductUnitName",
                table: "T_ShippingOrderDetail",
                type: "nvarchar(30)",
                maxLength: 30,
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "ProductCode",
                table: "T_ShippingOrderDetail");

            migrationBuilder.DropColumn(
                name: "ProductModelSpec",
                table: "T_ShippingOrderDetail");

            migrationBuilder.DropColumn(
                name: "ProductName",
                table: "T_ShippingOrderDetail");

            migrationBuilder.DropColumn(
                name: "ProductQty",
                table: "T_ShippingOrderDetail");

            migrationBuilder.DropColumn(
                name: "ProductUnitName",
                table: "T_ShippingOrderDetail");
        }
    }
}
